//index.js
//获取应用实例


Page({
  data: {
    indicator_dots:true,
    autoplay:true,
    interval:2000,
    duration:1000,
    circular:true,
    imgUrls:[
      
    ],
    nav:[]
  },
  onLoad:function(options){
    wx.request({
      url: 'https://locally.uieee.com/slides ',
      method:'GET',
      success: (res)=>{
       // console.log(res);
        this.setData({
          imgUrls:res.data
        })
      }
    })
    ,
    wx.request({
      url: 'https://locally.uieee.com/categories',
      method:'GET',
      success:(res) =>{
        //console.log(res)
        this.setData({
          nav:res.data
        })
      }
    })
  }
  
  
})
